//
//  SpecialCollectionViewCell.m
//  悠狸
//
//  Created by dlios on 15-8-28.
//  Copyright (c) 2015年 Dung. All rights reserved.
//

#import "SpecialCollectionViewCell.h"
#import "UIImageView+WebCache.h"

#import "CateModel.h"

@interface SpecialCollectionViewCell()

@property (nonatomic, retain)UIImageView *imageV;
@end
@implementation SpecialCollectionViewCell

- (void)dealloc
{
    [_imageV release];
    [super dealloc];
    
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.contentView.layer.cornerRadius = 10;
        self.contentView.clipsToBounds = YES;
        [self create];
    }
    return self;
}

- (void)create
{
    self.imageV = [[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height)] autorelease];
//    _imageV.backgroundColor = [UIColor yellowColor];
    
    [self.contentView addSubview:_imageV];
    
}
- (void)sendModel:(CateModel *)model
{
    [_imageV sd_setImageWithURL:[NSURL URLWithString:model.banner_image_url] placeholderImage:[UIImage imageNamed:@"000.jpg"]];
}
@end
